Image processing apparatus and image processing method

ABSTRACT

There is provided an image processing apparatus including a first storage unit for storing a first correction data for correcting a defective pixel signal outputted from a defective pixel of an image sensor, a detecting unit for detecting a defective pixel signal outputted from a defective pixel of the image sensor in accordance with a designation set by a user, a creating unit for creating a second correction data based on the defective pixel signal detected by the detecting unit, a determination unit for determining whether the second correction data is used with the first correction data, in accordance with a designation set by a user; and a correction unit for correcting a pixel signal output from the image sensor in accordance with a determination result of the determination unit.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a Continuation of U.S. patent application Ser. No.11/152,416 filed Jun. 14, 2005, which claims priority to Japanese PatentLaid-Open No. 2004-183668, filed Jun. 22, 2004, each of which are herebyincorporated by reference herein in their entireties.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a correcting process of an imagepicked-up by an image sensor, and in particular, relates to anextracting and correcting process of point defects generated by adefective pixel or a abnormality of dark current characteristics of animage sensor.

2. Description of the Related Art

In recent years, there have been concerns about the increase in adefective pixel which outputs a defective pixel signal called a pointdefect as a result of an increase in the pixel number of an image sensorused by a digital camera. The point defect is generated according toleak by a structural failure of the pixel and a abnormality of darkcurrent characteristics. There is a point defect which is generatedregardless of an exposure time or a sensitivity setup and a point defectto which the necessity for correction comes out according to a shootingcondition.

The following method is proposed as a correction process for data of thepoint defect. For example, in Japanese Patent Laid-Open No. 2000-209506,black level data picked-up by the same exposure time as the exposuretime at the time of a usual shooting is obtained, and the pixel whichexceeds a predetermined level in the black level data is determined tobe a point defect pixel. The position of the determined point defectpixel is stored, and data of the stored point defect pixel is correctedat the time of the usual shooting.

Also, in Japanese Patent Laid-Open No. 2000-59690, the data of thedefective pixel is corrected based on position information of thedefective pixel beforehand stored for a shooting image of a shortexposure time. The defective pixel is detected for the shooting image ofthe long exposure time, and the data of the defective pixel is correctedbased on the detection result.

However, with respect to the correction number of the point defect,there is a limit by restrictions of a cost and a system by a memorycapacity, a correction time, etc. Since the generation state of thepoint defect changes according to a shooting condition, suitablecorrection of the point defect cannot be performed. Additionally, in adefect detection process of a usual production process, it is impossibleto set up all the generation states for obtaining the correction databecause of a process time, a restriction of memory capacity, etc. Forthe above reason, in cases where a user used an imaging apparatus inenvironments other than the presumed general operating environment, itis difficult to efficiently correct the point defect generated in theuser's operating environment.

SUMMARY OF THE INVENTION

In view of the above problem in the conventional art, the presentinvention provides an image processing apparatus and an image processingmethod which can obtain a high quality image with the point defectefficiently corrected in any shooting condition and operatingenvironment (e.g., an exposure time, a temperature, a circumferencebrightness, etc.).

In accordance with an aspect of the present invention, an imageprocessing apparatus includes: a first storage unit arranged to store afirst correction data for correcting a defective pixel signal outputtedfrom a defective pixel of an image sensor; a detecting unit arranged todetect a defective pixel signal outputted from a defective pixel of theimage sensor in accordance with a designation set by a user; a creatingunit arranged to create a second correction data based on the defectivepixel signal detected by the detecting unit; a determination unit,arranged to determine whether the second correction data is used withthe first correction data, in accordance with a designation set by auser; and a correction unit, arranged to correct a pixel signal outputfrom the image sensor in accordance with a determination result of thedetermination unit.

In accordance with another aspect of the present invention, an imageprocessing method includes: detecting a defective pixel signal outputtedfrom a defective pixel of an image sensor in accordance with adesignation set by a user; creating a first correction data based on thedetected defective pixel signal; determining whether the firstcorrection data is used with a second correction data, in accordancewith a designation set by a user, wherein the second correction data forcorrecting a defective pixel signal outputted from a defective pixel ofthe image sensor is pre-stored in a storage unit; and correcting a pixelsignal output from the image sensor in accordance with the determinationresult.

Further features and advantages of the present invention will becomeapparent from the following description of exemplary embodiments withreference to the attached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of an imaging apparatus in one embodiment ofthe present invention.

FIGS. 2A, 2B and 2C illustrate a creation method of a correction data inthe present invention.

FIGS. 3A, 3B, 3C and 3D illustrate an acquiring condition of acorrection data in the present invention.

FIG. 4 is a flowchart illustrating a calibration operation in thepresent invention.

FIGS. 5A and 5B illustrates an extraction defect level setting screen.

FIG. 6A illustrates a calibration setting screen.

FIG. 6B illustrates a creation method of a correction data.

FIG. 7 is a block diagram of an imaging apparatus in another embodimentof the present invention.

DESCRIPTION OF THE EMBODIMENTS

Preferred embodiments of the present invention will be described indetail in accordance with the accompanying drawings. However, thedimensions, materials, shapes and relative positions of the constituentparts shown in the embodiments should be changed as convenient dependingon various conditions and on the structure of the apparatus adapted tothe invention, and the invention is not limited to the embodimentsdescribed herein.

In the following, the embodiments of the present invention are explainedusing the drawings. The image processing apparatus of the presentinvention will be described below as an imaging apparatus which picks-upan image.

FIG. 1 is a block diagram of an imaging apparatus in the presentinvention.

In FIG. 1, a lens 19 conducts image formation of a subject image, and isequipped with a lens mount 18 for mounting the lens 19 onto the imagingapparatus. An image sensor 1 (e.g., charge coupled device (CCD),complementary metal oxide semiconductor (CMOS), etc.) converts anoptical image into an electric signal. A driver 2 drives the imagesensor 1 on a predetermined frequency. Also, a timing generator 3generates a vertical synchronizing signal (VD) and a horizontalsynchronizing signal (HD) and provides timing signals to the driver 2,CDS (correlated double sampling)/AGC (automatic gain control) unit 4,and the CPU (central processing unit) 17.

An image signal generated by the image sensor 1 is input to the CDS/AGCunit 4. The CDS/AGC unit 4 removes a reset noise, etc., included in anoutput of the image sensor 1 and amplifies the output to a predeterminedsignal level. An A/D (analog/digital) converter 5 converts the amplifiedimage signal to a digital image signal and outputs the digital imagesignal. The digital image signal is inputted to a memory controller 9via a selector 6 and transmitted to a frame memory 10 via the memorycontroller 9. Therefore, in the imaging apparatus of the presentembodiment, all the picked-up image signals are stored in the framememory 10.

The image signal stored in the frame memory 10 is transmitted to a DSP(digital signal processor) 8 via the selector 6. The DSP 8 corrects thepoint defect of the image signal stored in the frame memory 10 based oncorrection data stored in a correction memory 7.

In the correction process of the point defect, the DSP 8 creates aninterpolation pixel signal with reference to the circumference pixel ofthe point defect based on the correction data. Then, the image signal(defective pixel signal) of the point defect is interpolated by theinterpolation pixel signal.

Additionally, the DSP 8 creates color signals of RGB from the correctedimage signal. The color signals are stored in a work memory 12. Then acoding/decoding unit 14 compression-encodes the image data stored in thework memory 12 based on a predetermined compression method (e.g., JPEG(Joint Photographic Experts Group), JPEG2000 etc.). The encoded imagedata is stored in an external memory 15 (e.g., a non-volatile memory (aflash memory etc.)).

In cases where a shooting (namely, recording start of an image) isdirected by an operation of an operation switch 16, a CPU (centralprocessing unit) 17 controls the selector 6, and DSP 8 and memorycontroller 9, for the purpose of reading the image data of a frame fromthe frame memory 10 and storing the image data in the work memory 12after performing an image processing by the DSP 8.

Additionally, in cases where the image data after shooting isreproduced, the image data stored in the external memory 15 is decodedby the coding/decoding unit 14, and the decoded image data is displayedon a display unit 13 after being stored in a video memory 11. Althoughthe correction memory 7 for the point defect correction was specifiedwith the arrangement of FIG. 1, the data for the point defect correctionmay be stored in a flash memory area of the DSP 8. The timing whichobtains the correction data for the point defect correction may be atthe time of a production process, or the correction data may be obtainedbeforehand and may be stored in the memory before shooting (e.g., at thetime of a power supply starting, and every predetermined interval time).

Also, the operation switch 16 is used for a setup of a shootingcondition, a calibration, and a selection of additional data.

It becomes possible to perform a correcting process of the point defectby using the correction data suitable for each user, by storing in thecorrection memory 7 the correction data obtained by setting conditionsas described below and correcting the point defect based on the obtainedcorrection data.

The example of various setting conditions according to this embodimentis described below:

(1) a storage time; 1 SEC., 30 SEC.

(2) an operating temperature; ROOM TEMPERATURE, 45° C.

(3) a usage environment; PRODUCTION PROCESS, USER

(4) a usage type; IMAGE SENSOR, IMAGING APPARATUS

(5) an operating condition; NORMAL, NC

The storage time indicates a time for accumulating the charge of theimage sensor when obtaining the correction data. That is, the storingtime means an exposure time. The 1 SEC. indicates one second, and the 30SEC. indicates thirty seconds. Also, the 30 SEC. indicates the longestaccumulation (exposure) time of the imaging apparatus. That is, the 30SEC. indicates the longest setup time in a shutter time priorityshooting mode. The values of 1 SEC. and 30 SEC. are just examples, andany time value that would enable practice of the present invention isapplicable.

The operating temperature indicates an environmental temperature whenoperating the image sensor to obtain the correction data. In thisembodiment, the ROOM TEMPERATURE and the 45° C. can be set up. The ROOMTEMPERATURE indicates a room temperature when operating the image sensorto obtain the correction data. The 45° C. indicates a temperature higherthan the room temperature. The above-described temperatures are justexamples, and any temperature that would enable practice of the presentinvention is applicable.

The usage environment indicates an environment when operating the imagesensor to obtain the correction data. The PRODUCTION PROCESS indicatesan environment in a production process of the apparatus, and the USERindicates a user's usage environment where a user actually uses theimage sensor.

The usage type indicates whether the image sensor is built into theimaging apparatus (i.e., a digital camera, video camera etc.), whenobtaining the correction data. The IMAGE SENSOR indicates a state wherethe image sensor is not built into the imaging apparatus. That is, inthe production process, the correction data is obtained when the imagesensor is in the condition of a simple substance. The IMAGING APPARATUSindicate a state where the image sensor is built into the imagingapparatus. That is, the correction data is obtained in the state wherethe image sensor is built into the imaging apparatus.

The operating condition indicates a condition whether to operate thenoise cancel when obtaining the correction data. The NORMAL indicates acondition where the noise cancel is not operated. The NC indicates acondition where the noise cancel is operated. The noise cancelprocessing is described below.

FIGS. 2A, 2B and 2C illustrate a storage method of a correction data inthe present invention.

In this embodiment, a standard condition and an additional condition areset up by combining the above-described setting conditions (1) to (5).In this embodiment, the correction data obtained based on the standardcondition is described to be basic data. Also, the correction dataobtained based on the additional condition is described to be additionaldata. Only the data which does not exist in the basic data is added tothe additional data. The basic data and additional data are provided acorrection priority with respect to use thereof. In the storage dataillustrated in FIG. 2, the correction priority of the data is high tolow from the top of the storage to the bottom of the storage as shown inFIGS. 2A, 2B and 2C.

The basic data is always used for correction. Also, it is determinedwhether to use the additional data for correction in accordance with ashooting condition and/or a correcting process time. Therefore, theadditional data is fundamentally set up in the priority of correctionlower than the basic data.

However, in cases where the additional data is considered to be omissionin extraction of the correction data in the production process or theadditional data is obtained by a calibration operation, the priority ofthe additional data can be set up higher than the basic data in order toalways use the additional data.

In FIG. 2A, the creation method of the correction data in the case ofusing the additional data auxiliary for the basis data is illustrated.The additional data illustrates the data for correcting the point defectgenerated in a specific shooting condition. Therefore, the priority ofthe additional data is set lower than the basic data. Also, it isdetermined whether use the additional data for correction in accordancewith a shooting condition and/or a correcting process time.

In FIG. 2B, the creation method of the correction data in the case ofusing the additional data preferentially for the basic data isillustrated. The additional data is the data obtained based on theadditional condition set up in order to correct the point defect whichhas leaked on standard conditions, or the point defect generated later.For example, since the additional data obtained in a user's usageenvironment contains the correction data of the point defect generatedat the time of actual shooting, the priority is set higher rather thanthe basic data. Also, the additional data is set up in accordance with adesignation set by a user.

In FIG. 2C, the creation method of the correction data in the case ofhaving additional data 1 used auxiliary for the basic data andadditional data 2 used preferentially is illustrated.

It is determined whether the additional data 1 is used for correction inaccordance with a shooting condition and/or a correcting process time.Also, the additional data 2 is set up in accordance with a designationset by a user and is always used with the basic data.

The point defect generated by user's usage environment and a specificshooting condition is efficiently correctable with the correction datacreated as described above.

FIGS. 3A, 3B, 3C, and 3D illustrate an acquiring condition of acorrection data in the present invention. FIGS. 3A, 3B, 3C, and 3D,provide four examples of combination of the above-described conditions(1) to (5), which are adapted in FIG. 2C. Typically, the design engineerof the imaging apparatus will choose desired conditions from among thefour kinds of examples and include them in the imaging apparatus.

In FIGS. 3A, 3B, 3C and 3D, an additional condition 2 indicates acondition used in order that a user may create an original correctiondata. Therefore, user's use environment (described as the USER) isdescribed in the item of the usage environment (3), and IMAGE APPARATUSis described in the item of the usage type (4). The items of the storagetime (1), operating temperature (2), and operating condition (5) aredescribed as ARBITRARY, because they become the shooting condition whichthe user set up.

The NORMAL of the operating condition (5) indicates the condition of OFFof the noise cancel operation, and the NC indicates the condition of ONof the noise cancel operation. The noise cancel operation is anoperation which prevents the image quality deterioration generated bythe abnormality of dark current characteristics, by deducting the darkpicture, which is obtained by the same storage time as the exposure timeof a picked-up image, from the picked-up image.

In FIG. 3A, the difference between the standard condition and theadditional condition 1 is the storage time (1). According to theadditional condition 1 of the (3A), the additional data 1 correspondingto long-time exposure can be obtained. Additionally, since thedifference between the standard condition and additional condition 1 isonly the storage time (1), the additional data can be obtained easily.

In FIG. 3B, the difference between the standard condition and theadditional condition 1 is the storage time (1) and operating temperature(2). According to the additional condition 1 of the FIG. 3B, theadditional data 1 used in the environment of high temperature (45° C.)can be obtained.

In FIG. 3C, unlike the FIGS. 3A and 3B, the standard conditions of FIG.3C have set operating temperature as 45° C. In the additional condition1 of FIG. 3C, the IMAGING APPARATUS is used on the usage type (4) andthe NC is used on the operating condition (5). The basic datacorresponding to broad temperature conditions can be obtained by raisingtemperature on the standard condition. In the imaging apparatus which isan actual usage type, the additional data 1 corresponding to the noisecancel operation can be obtained according to the additional condition1. According to the standard condition and additional condition 1, thecorrection data (the basic data and the additional data 1) correspondingto a broad shooting condition can be obtained.

In FIG. 3D, the Standard condition is the same as the standardconditions of FIG. 3C. The additional condition 1 is changed into thelong time (30 sec.) in the storage time (1) of the standard condition.According to the standard condition and additional condition 1, thecorrection data according to the storage time of 1 sec. and 30 sec. canbe obtained in the environment of high temperature (45° C.).

A production process of the imaging apparatus or the image sensor may besufficient as the production process. In cases where an acquisition ofthe correction data is the production process of the image sensor, thecorrection data should be stored in a storage medium etc., and beinstalled in the production process of the imaging apparatus.

FIG. 4 is a flowchart illustrating a calibration operation in thepresent invention. The calibration operation extracts the information ofthe point defect (the defective pixel signal) generated in a usageenvironment and a shooting condition where a user uses the imagingapparatus and adds the correction data according to the extractedinformation. The usage environment is for example, the ground in atropical rain forest or the ground of in ice field.

In cases where the user performs the calibration, the user sets up theuser calibration mode (UC) by operating the operation switch 16 (stepS4-1). Next, the shooting conditions, such as the storage time and thenoise cancel operation, are set (step S4-2).

Next, the imaging apparatus is shaded (step S4-3). In cases where thelens is mounted on the imaging apparatus, the shading is performed bymounting a lens cap, and in cases where not mounted, the shading isperformed by mounting a mount cap. The shading of reversely incidentlight from a finder is performed by mounting an eyepiece shutter or ashielding member.

After shading, a release button is pushed and a dark image is picked-up(step S4-4). At the time of the calibration operation, a RAW image whichis converted into the digital signal the pixel signal outputted from animage sensor is recorded regardless of a recording mode setup forshooting.

Next, the position of the pixel determined to be the point defect, thelevel of the point defect, etc. are detected from the picked-up RAWimage, and the correction data is created based on the detected positionand level (step S4-5). The correction data is stored in the correctionmemory 7 and the RAW image used for the detection of the point defect isdeleted (step S4-6). Finally, after notifying a user of the end ofstorage of the correction data, the user calibration mode is canceled(step S4-7). The processing is then completed.

The user can select whether the additional data obtained by thecalibration mode is used as the correction data using the operationswitch 16.

The criterion of the determination performed in step S4-5 may be set upbeforehand by the user. FIG. 5 depicts a manual setting method of thedensity level extracted as a point defect by a user.

FIGS. 5A and 5B illustrates an extraction defect level setting screen.

FIG. 5A illustrates the setting screen for inputting the extractiondefect level determined to be the point defect. More than the extractiondefect level inputted in the setting screen of FIG. 5A is determined tobe the point defect.

FIG. 5B illustrates the screen which shows the histogram of the darkimage with the extraction defect level. The level of the dotted line inFIG. 5B illustrates the extraction defect level set up by the user. Theuser can recognize whether more than which level is detected as thepoint defect by the setting screen of FIG. 5B. Therefore, the user canset up the optimal extraction defect level, referring to the histogramof the actually picked-up image.

The dark image illustrated by the histogram is the RAW image. Thesetting range of the extraction defect level is 1 to 4095 because theRAW image is 12 bits data. Therefore, the extraction defect level can beset up within the limits of the density level which can be expressedwith the bit number of the RAW image.

Additionally, the imaging apparatus can store the result of thecalibration for every user in order to improve user-friendliness incases where a plurality of users uses the imaging apparatus.

FIG. 6A illustrates a calibration setting screen, in cases where thereare four calibration settings (UC-1, UC-2, UC-3 and UC-4).

In FIG. 6A, the calibration setting of the UC-2 is selected by theoperation switch 16.

FIG. 6B illustrates a creation method of a correction data.

In FIG. 6B, the correction data is created based on additional data 2-2corresponding to the selected UC-2, the basic data and the additionaldata 1. In FIG. 6B, additional data 2-1 corresponds to the UC-1,additional data 2-2 corresponds to the UC-2, additional data 2-3corresponds to the UC-3, and additional data 2-4 corresponds to theUC-4.

The imaging apparatus assigns memory areas of the additional data 2corresponding to the number of users which use the imaging apparatus anda plurality of calibration settings (for example, UC-1, UC-2, US-3 andUS-4 of FIG. 6A). Additionally, when the user sets up the usercalibration mode (UC), one of the calibration settings is selected byusing the operation switch 16 and the memory area of the additional data2 is exchanged according to the selected result.

Here, the correcting process of the point defect is explained in detailusing the conditions of FIG. 3C, i.e., in cases where the temperature isalways high in the user's usage environment.

First, in the production process, the dark image is picked-up on theconditions that the temperature of the image sensor simple substance is45° C. and the storage time is 1 sec., and then the correction data ofthe point defect is created based on the dark image. The correction datais the basic data of the standard condition. The basic data can beadapted in cases where the image sensor is high temperature, but incases where it takes a picture by setup of long-time exposure (30 sec.),the point defect which cannot be corrected may exist and image qualitydeterioration may occur.

Then, the additional data 1 is created on the conditions (the additionalcondition 1) that the storage time is 30 sec., the temperature of theimage sensor is room temperature and the NC is performed. In cases wherea long-time exposure (30 sec.) shooting is performed, the point defectis corrected using the additional data 1 with the basic data. Since theadditional data 1 is used on special conditions, the priority ofcorrection is set up low. Additionally, in cases where other than thespecial conditions, for example, a margin exists in the time of thecorrecting process or the high-quality mode is set up, the additionaldata 1 with the basic data may be used. That is, the DSP 8 determineswhether the additional data 1 is used with the basic data in accordancewith the shooting condition and the time of the correcting process.

Next, in cases where a user calibration is directed by the user using,the additional data 2 based on the additional condition 2 is created byperforming processes of FIG. 4. Since the additional data 2 turns intodata which corrects the point defect generated in the user's usageenvironment, the priority of correction of the additional data 2 is sethigh. Therefore, the point defect in the user's usage environment can becorrected. Also, it can be determined, according to a designation set bya user, whether the additional data 2 is used with the basic data 2. Thedesignation is set by the user via operation switch 16.

Thus, by having the additional data 1 which sets up low priority, andthe additional data 2 which sets up high priority, the point defect canbe suitably corrected for each user's unique usage environment andshooting condition.

As explained above, by generating the correction data actually used fora shooting image based on the correction data obtained in the productionprocess and in user's usage environment, suitable correction processingcan be performed resulting in high image quality. Since the point defectis detected by the shooting condition according to the user, andcorrection data is created based on the detection result, the suitablecorrection processing according to the user can be realized.

An additional embodiment where the selection process of whetheradditional data uses may be performed is described as follows. As shownin FIG. 7, the imaging apparatus of the present embodiment is similar tothe imaging apparatus of the above-described embodiment, with theaddition of an environment sensor 20. The environment sensor 20 detectsa temperature of the image sensor 1, as well as the humidity, andatmospheric pressure of the shooting environment.

The shooting information with respect to shooting conditions (e.g.,exposure time, noise cancel etc.) and environment (e.g., temperature,humidity, atmospheric pressure) when obtaining the additional data isstored in the correction memory 7 correlated with the additional data.The CPU 17 determines whether the additional data is used for thepicked-up image data by comparing the stored shooting information andcurrent shooting information of the shooting mode and environment sensorwhen obtaining the picked-up image data. For example, the additionaldata is used for the correction if the current shooting information issubstantially identical to the stored information. Additionally, if amargin is in the processing time, the additional data is used for thecorrection. Although the temperature, humidity, and atmospheric pressureare detected in this embodiment, detection of all three is not necessaryfor implementation of the present embodiment, and detection of anycombination that would allow practice of the present invention isapplicable.

While the present invention has been described with reference toexemplary embodiments, it is to be understood that the invention is notlimited to the disclosed embodiments. On the contrary, the invention isintended to cover various modifications and equivalent arrangementsincluded within the spirit and scope of the appended claims. The scopeof the following claims is to be accorded the broadest interpretation soas to encompass all such modifications and equivalent structures andfunctions.

1. An image processing apparatus comprising: a first storage unitarranged to store a first correction data for correcting a defectivepixel signal outputted from a defective pixel of an image sensor; adetecting unit arranged to detect a defective pixel signal outputtedfrom a defective pixel of the image sensor in accordance with acalibration setting by a user; a creating unit arranged to create asecond correction data based on the defective pixel signal detected bythe detecting unit; a determination unit arranged to determine whetherthe second correction data is used with the first correction data, inaccordance with a calibration setting by a user; and a correction unitarranged to correct a pixel signal output from the image sensor inaccordance with a determination result of the determination unit.